<?php
/**
 * User : Ciddy Natadisastra
 * Create Date: 7/21/11
 * Change Date: 7/21/11
 * File Description:
 *
 *
 *
 */

define("SITE_PATH","d:/project/sketch");

OKE::configure('mysql:host=localhost;dbname=okedb'); // using PDO with orm in helper dir dborm.php
OKE::configure('username', 'apache');
OKE::configure('password', 'develop');
OKE::configure('driver_options', array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8'));
OKE::configure('error_mode', PDO::ERRMODE_WARNING);
OKE::configure('logging', false); // log all queries it executes [ OKE::get_last_query(); ] for last query and return array of queries using [ OKE::get_query_log(); ]
OKE::configure('caching', true); // query cache in memory .. if encounters a query that has already been run, it will fetch the results directly from its cache and not perform a new database query

// By default, I assumes that all tables have a primary key column called "id" if different list specify the primary key column name for each table separately in this array;
OKE::configure('id_column_overrides', array(
    'user_login' => 'user_id'
));
 